package com.schoolcloud.system.service;

import com.schoolcloud.common.model.PageDTO;
import com.schoolcloud.system.dto.SysRoleCreateDTO;
import com.schoolcloud.system.entity.SysRole;
import com.schoolcloud.system.query.SysRoleQuery;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【sys_role(角色表)】的数据库操作Service
* @createDate 2024-10-19 23:05:49
*/
public interface SysRoleService {

    List<String> getRoleCodeListByUser(String userId);

    /**判断一个用户是否是超级管理员
     * @param user
     * @return boolean
     */
    boolean isAdmin(String user);

    PageDTO<SysRole> getRolePage(SysRoleQuery query);

    SysRole getRoleById(String roleId);

    void createSysRole(SysRole sysRole);

    void modifySysRole(SysRole role);
}
